package com.da.springtest.ioc.inject;

/**
 * @author chenlida
 * @date 2020/6/14 21:17
 * @description
 */
public class PersonModel {
    private MenuModel menuModel;
    private CarModel carModel;

    public PersonModel() {
    }

    public PersonModel(MenuModel menuModel, CarModel carModel) {
        this.menuModel = menuModel;
        this.carModel = carModel;
    }

    public MenuModel getMenuModel() {
        return menuModel;
    }

    public CarModel getCarModel() {
        return carModel;
    }

    public void setMenuModel(MenuModel menuModel) {
        this.menuModel = menuModel;
    }

    public void setCarModel(CarModel carModel) {
        this.carModel = carModel;
    }

    @Override
    public String toString() {
        return "PersonModel{" +
            "menuModel=" + menuModel +
            ", carModel=" + carModel +
            '}';
    }
}
